#ifndef DELAY_H
#define DELAY_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/  
#define PSC_MS 7199
#define PSC_US 71

/* Exported macro ------------------------------------------------------------*/
#define delay_init()	Timer_5_Delay_Init()
#define delay_ms(time)	Timer_5_Delay_ms(time)
#define delay_us(time)	Timer_5_Delay_us(time)

/* Exported variables ---------------------------------------------------------*/
extern uint32_t systick;

/* Exported functions ------------------------------------------------------- */
void Timer_5_Delay_Init(void);
void Timer_5_Delay_ms(u32 ms);
void Timer_5_Delay_us(u32 us);

#endif

